package com.example.book.model;

import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {
    private List<T> books;
    private Integer total;

    private PageRequest pageRequest;

    public PageResult(List<T> books, Integer count, PageRequest pageRequest) {
        this.books = books;
        this.total = count;
        this.pageRequest = pageRequest;
    }
}
